﻿<Window
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    xmlns:app="clr-namespace:MyFinanceManager.PC"
     x:Class="MyFinanceManager.PC.WindowNewStyle"
     x:Name="Window"
     WindowState="Maximized" Title="My Finance Manager - Desktop" MinWidth="1024" MinHeight="764" Closing="Window_Closing" Icon="\Pics\money.jpg">
    <Window.Resources>

    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="115"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Image  x:Name="headerPic" Source="\Pics\HeaderBlack.jpg" HorizontalAlignment="Stretch" Grid.Row="0" Grid.RowSpan="3" Stretch="UniformToFill" />
        <Grid>
            <TextBlock RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Right" Width="562" Margin="0,10,10,10" />
        </Grid>
        <StackPanel  x:Name="stackPanelBar" Orientation="Horizontal" Grid.Row="1" Margin="0,0,0,0" Background="{DynamicResource VistaTaskbarBlack}">
            <Button Content="Home" Width="160" Style="{DynamicResource ButtonStyleBlack}" MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave" Click="Button_Click"  Tag="Home"/>
            <Button Content="Einnahmen" Width="160" Style="{DynamicResource ButtonStyleGreen}" MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave" Click="Button_Click" Tag="Einnahme"/>
            <Button Content="Transfers" Width="160" Style="{DynamicResource ButtonStyleYellow}"  MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave" Click="Button_Click" Tag="Transfers"/>
            <Button Content="Ausgaben" Width="160" Style="{DynamicResource ButtonStyleOrange}" MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave" Click="Button_Click" Tag="Ausgabe"/>
            <Button Content="Auswertung" Width="160" Style="{DynamicResource ButtonStyleBlue}"  MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave" Click="Button_Click" Tag="Auswertung"/>
            <Button Content="Einstellungen" Width="160" Style="{DynamicResource ButtonStyleBlack}"  MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave" Click="Button_Click" Tag="Einstellungen"/>
        </StackPanel>
        <Rectangle Fill="#BDFFFFFF" Grid.Row="2"  />
        <app:ucNewStartpage x:Name="pageStart" Grid.Row="2" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
        <app:ucNewViewPostingRecord x:Name="pageExpenses" Grid.Row="2" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Hidden"/>
        <app:ucNewViewPostingRecord x:Name="pageEarnings" Grid.Row="2" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Hidden"/>
        <app:ucNewViewTransferRecord x:Name="pageTransfers" Grid.Row="2" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Hidden"/>
        <app:ucNewViewFuelRecord x:Name="pageFuel" Grid.Row="2" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Hidden"/>
        <app:ucNewViewAuswertung x:Name="pageAuswertung" Grid.Row="2" Visibility="Hidden" />
    </Grid>
</Window>